package com.ruoyi.crm.service;

import com.ruoyi.crm.domain.CrmExpertPool;

import java.util.List;

/**
 * 专家库Service接口
 *
 * @author yanwenliang
 * @date 2024-08-15
 */
public interface ICrmExpertPoolService
{
    /**
     * 查询专家库
     *
     * @param expertId 专家库主键
     * @return 专家库
     */
    public CrmExpertPool selectCrmExpertPoolByExpertId(Long expertId);

    /**
     * 查询专家库列表
     *
     * @param crmExpertPool 专家库
     * @return 专家库集合
     */
    public List<CrmExpertPool> selectCrmExpertPoolList(CrmExpertPool crmExpertPool);

    /**
     * 新增专家库
     *
     * @param crmExpertPool 专家库
     * @return 结果
     */
    public int insertCrmExpertPool(CrmExpertPool crmExpertPool);

    /**
     * 修改专家库
     *
     * @param crmExpertPool 专家库
     * @return 结果
     */
    public int updateCrmExpertPool(CrmExpertPool crmExpertPool);

    /**
     * 批量删除专家库
     *
     * @param expertIds 需要删除的专家库主键集合
     * @return 结果
     */
    public int deleteCrmExpertPoolByExpertIds(Long[] expertIds);

    /**
     * 删除专家库信息
     *
     * @param expertId 专家库主键
     * @return 结果
     */
    public int deleteCrmExpertPoolByExpertId(Long expertId);

    /**
     * 获取专家信息
     * @param crmExpertPool
     * @return
     */
    CrmExpertPool getExpertOne(CrmExpertPool crmExpertPool);

    CrmExpertPool getExpertByName(String name);
}
